const mongoose = require('./db');

const schema = mongoose.Schema({
    username: {
        type: String,
        unique: true
    },
    password: String,
    avatar: String
}, {
    collection: 'users'
});

const userModel = mongoose.model('users', schema);

module.exports = userModel;